/**
 * Ressource 
 * Define Ressource objects
 **/
var Ressource = function() {
	this.conf = null;
	this.items = 0;
	this.position = null;

	this.init = function(p) {
		log('*** INIT RESSOURCE ***');
		this.conf = RessourceConf.pickup();
		this.items = rand(this.conf.min, this.conf.max);
		this.name = this.conf.name;
		this.position = p;
	}

	this.isWalkable = function() {
		return this.conf.walkable;
	}

	this.getColor = function() {
		return this.conf.color;
	}
};